<template>
  <div class="wrapper" :style="wrapper">
    <div class="content">
      <h1 class="title">欢迎来到高校排课系统</h1>
      <div class="inner">
        <h3><router-link to="admin/login" class="link">管理员|讲师入口</router-link></h3>
        <h3><router-link to="student/login" class="link">学生入口</router-link></h3>
      </div>
    </div>
    <h3 class="footer">Copy Right：© 2025 软件工程3班</h3>
  </div>
</template>

<script>
export default {
  name: 'Home',
  data() {
    return {
      wrapper: {
        backgroundImage: "url(" + require("../images/index.png") + ")",
        backgroundRepeat: "no-repeat",
        backgroundSize: "cover",
        backgroundPosition: "center",
      },
    }
  }
}
</script>

<style lang="less" scoped>
  .wrapper {
    height: 100%;
    width: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .content {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
  }

  .inner {
    margin-top: 20px;
  }

  .link {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s;
  }

  .link:hover {
    color: #0056b3;
  }

  .footer {
    margin-top: 20px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
</style>